﻿namespace Tfs.OnTheRoad.Converters
{
    using System;
    using System.Windows.Data;

    /// <summary>
    /// Converts the Value(Query.Type) to the proper image that represents the Query Status
    /// </summary>
    public class QueryImageConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null)
                return string.Format("/Images/Query{0}.png", value.ToString());
            else
                return string.Empty;
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
